Salesforce UX API
TMF-700 Create Shipping Order Quote
Create shipping order, AKA Create Quote in DoorDash
URL
https://[localhost]:[port]/sfdc-ux/v1/{businessId}/shippingOrder
url Param
name | type | description | required |
---|---|---|---|
businessId | string | 2 letter ISO 3166 country code (TT, BB, JM, PA, etc.) identifying the business unit. | Y |
Header
name | type | description | required |
---|---|---|---|
client_id | string | The client_id identifying the channel. Minimum characters: 5 | Y |
client_secret | string | Password associated with the client_id. Minimum characters: 5 | Y |
X-Correlation-ID | string | Identifier that correlates HTTP request between a client and server. Any identification model (UUDI, checksum, etc.) can be used, as long as it is a unique value to differentiate a transaction. | Y |
cURL request
curl --location 'https://nonprod.esb.cloud.lla.com/dev/sfdc-ux/sfdc-ux/v1/PR/shippingOrder' \
--header 'client_id: 12344' \
--header 'client_secret: 11111' \
--header 'X-Correlation-ID: 989768897700' \
--header 'Content-Type: application/json' \
--data-raw '{
"placeTo": {
"name": "901 Market Street 6th Floor San Francisco, CA 94103", //dropoff_address
"city": "San Juan", //dropoff_address_components.city
"country": "US", //dropoff_address_components.country
"postCode": "00911", //dropoff_address_components.zip_code
"stateOrProvince": "PR", //dropoff_address_components.state
"streetName": "110 Calle del Parque", //dropoff_address_components.street
"geographicLocation": {
"bbox": [
123.1312343, //dropoff_longitude
-37.2144343 //dropoff_Latitude
],
"@type": "GeoJsonPoint"
},
"role": "Recipient",
"@referredType": "GeographicAddress"
},
"placeFrom": {
"name": "901 Market Street 6th Floor San Francisco, CA 94103", //pickup_address
"geographicSubAddress": [
{
"id": "myBusiness123", //pickup_external_business_id
"name": "store-456" //pickup_external_store_id
}
],
"role": "PickupStore",
"@referredType": "GeographicAddress"
},
"relatedParty": [
{
"name": "John Doe", //dropoff_contact_given_name + dropoff_contact_family_name or dropoff_business_name
"role": "Recipient", //indicates dropoff information
"@referredType": "Individual",
"contactMedium": [
{
"mediumType": "Phone",
"preferred": true,
"characteristic": {
"phoneNumber": "+16505555555" //dropoff_phone_number
}
}
]
},
{
"name": "Liberty Store", //pickup_business_name
"role": "PickupStore", //indicates pickup information
"@referredType": "Organization",
"contactMedium": [
{
"mediumType": "Phone",
"preferred": true,
"characteristic": {
"phoneNumber": "+16505555555" //pickup_phone_number
}
}
]
}
],
"shippingInstruction": {
"signatureRequired": true, //dropoff_requires_signature true/false
"deliveryTimeSlot": { //drop_off_window
"endDateTime": "2025-07-09T14:35:52.962-04:00",
"startDateTime": "2025-07-08T14:35:52.962-04:00"
},
"instructionCharacteristic": [
{
"name": "pickup_instructions",
"value": "Go to the bar for pick up." //pickup_instructions
},
{
"name": "dropoff_instructions",
"value": "Enter gate code 1234 on the callbox." //dropoff_instructions
}
]
},
"shippingOrderCharacteristic": [
{
"name": "shipping_partner", //to indicate integration with DoorDash (Mondatory for routing)
"value": "doordash"
},
{
"name": "order_fulfillment_method",
"value": "standard" //order_fulfillment_method
},
{
"name": "pickup_verification_metadata",
"valueType": "object",
"value": { //pickup_verification_metadata
"verification_type": "SCAN_BARCODE",
"verification_code": "12345",
"verification_format": "CODE_39"
}
},
{
"name": "contactless_dropoff",
"value": "false" //contactless_dropoff true/false
},
{
"name": "action_if_undeliverable",
"value": "return_to_pickup" //action_if_undeliverable
},
{
"name": "order_contains",
"valueType": "object",
"value": { //order_contains
"alcohol": false,
"pharmacy_items": false,
"age_restricted_pharmacy_items": false,
"tobacco": false,
"hemp": false,
"otc": false
}
},
{
"name": "pickup_window",
"valueType": "TimePeriod",
"value": { //pickup_window
"startDateTime": "2025-07-09T07:00:00.000-04:00",
"endDateTime": "2025-07-09T17:00:00.000-04:00"
}
},
{
"name": "locale",
"value": "en-US" //locale
}
],
"shippingOrderItem": [
{
"id": "D-134556", //external_delivery_id
"quantity": "2", //item[].quantity
"action": "add",
"shipment": {
"collectionDate": "2025-07-09T07:00:00.000-04:00", //pickup_time
"completionDate": "2025-07-10T07:00:00.000-04:00", //dropoff_time
"expectedDeliveryDate": "2025-07-10T07:00:00.000-04:00" //customer_expected_sla
},
"product": {
"id": "123-123443434b", //items[].external_id
"name": "Mega Bean and Cheese Burrito" //items[].name
},
"productPrice": [
{
"priceType": "itemPrice",
"price": {
"taxIncludedAmount": {
"value": 110, //items[].price
"unit": "USD"
}
}
}
],
"externalIdentifier": [
{
"id": "Order number 61" //pickup-reference_tag
}
],
"shipmentCharacteristic": [
{
"name": "dimensions",
"valueType": "object",
"value": {
"height": 2.8, //items[].height
"width": 2.8, //items[].width
"length": 2.8 //items[].length
}
},
{
"name": "weight",
"value": "3.6" //items[].weight
},
{
"name": "volume",
"value": "5.6" //items[].volume
},
{
"name": "barcode",
"value": "567886" //items[].barcode
},
{
"name": "special_instructions",
"value": "Only Ripen Bananas" //items[].special_instructions
},
{
"name": "external_instance_id",
"value": "12" //items[].external_instance_id
},
{
"name": "description",
"value": "Mega Burrito contains the biggest beans of the land with extra cheese." //items[].description
}
]
}
],
"shippingOrderPrice": {
"priceType": "deliveryQuote",
"price": {
"taxIncludedAmount": {
"unit": "USD",
"value": 19.99 //order_value
}
},
"priceAlteration": {
"priceType": "tip",
"price": {
"taxIncludedAmount": {
"value": 5.99 //tip
}
}
}
}
}'
Definitions
Each of the request parameters is detailed.
Name | Type | Description | Required |
---|---|---|---|
placeTo | Object | Object describes drop off address | Y |
placeTo.@referredType | String | Reference type of the destination place (GeographicAddress ) | Y |
placeTo.name | String | Comma-separated full address of the destination | Y |
placeTo.city | String | City for the address | N |
placeTo.country | String | Country needs to be passed as an ISO 3166 Alpha 2 code | Y |
placeTo.postCode | String | Zip code for the address. 5 digit zip code for US addresses. | N |
placeTo.stateOrProvince | String | State for the address. 2 letter state codes for US addresses. For instance, “CA” for California | N |
placeTo.streetName | String | The street address of the drop-off location. | N |
placeTo.geographicLocation | Object | Bounding Box Information | N |
placeTo.geographicLocation.bbox | Array | Longitude, Latitude | |
placeTo.geographicLocation.@type | String | Type of geographicLocation | N |
placeTo.role | String | Role of the place (Recipient ) | Y |
placeFrom | Object | Object describes drop off address | Y |
placeFrom.@referredType | String | Reference type of pickup place | Y |
placeFrom.name | String | Comma-separated full address of the pickup location | N |
placeFrom.geographicSubAddress.id | String | Pickup Business id | Y |
placeFrom.geographicSubAddress.name | String | Pickup Store id | N |
placeFrom.role | String | Role of the place (PickupStore ) | Y |
relatedParty[].name | String | Party name (Business Name/Dropoff Name ) | N |
relatedParty[].role | String | Party role (Recipient , PickupStore ) | Y |
relatedParty[].@referredType | String | Type of party (Individual , Organization ) | Y |
relatedParty[].contactMedium[].mediumType | String | Contact type (e.g., Phone ) | N |
relatedParty[].contactMedium[].preferred | Boolean | Whether it is the preferred contact method | N |
relatedParty[].contactMedium[].characteristic.phoneNumber | String | Contact phone number Mandatory for dropoff | Y* |
shippingInstruction.signatureRequired | Boolean | Whether signature is required on delivery | N |
shippingInstruction.deliveryTimeSlot.startDateTime | DateTime | Start time of delivery slot | N |
shippingInstruction.deliveryTimeSlot.endDateTime | DateTime | End time of delivery slot | N |
shippingInstruction.instructionCharacteristic[].name | String | Name of instruction (pickup_instructions , etc.) | N |
shippingInstruction.instructionCharacteristic[].value | String | Instruction text | N |
shippingOrderCharacteristic[].name | String | Name of metadata (e.g., tip , order_contains ) | N |
shippingOrderCharacteristic[].value | Mixed | Value of the metadata | N |
shippingOrderCharacteristic[].valueType | String | Optional: describes the type (e.g., object , string ) | N |
shippingOrderItem[].id | String | External delivery ID | Y |
shippingOrderItem[].quantity | String | Quantity of product | N |
shippingOrderItem[].action | String | Order action (add , modify , etc.) | Y |
shippingOrderItem[].shipment.collectionDate | DateTime | Pickup time | N |
shippingOrderItem[].shipment.completionDate | DateTime | Drop-off time | N |
shippingOrderItem[].shipment.expectedDeliveryDate | DateTime | Expected SLA delivery | N |
shippingOrderItem[n].externalIdentifier[].id | String | A reference that can help Dasher identify the correct delivery item for pick up/drop-off. | N |
shippingOrderItem[].product.id | String | Product ID. i.e Item external id | N |
shippingOrderItem[].product.name | String | Product name | N |
shippingOrderItem[].shipmentCharacteristic[].name | String | Characteristic name (weight , volume , price , etc.) | N |
shippingOrderItem[].shipmentCharacteristic[].value | Mixed | Characteristic value | N |
shippingOrderItem[].shipmentCharacteristic[].valueType | String | (Optional) Type of the value, e.g., object , string | N |
shippingOrderPrice.priceType | String | Type of price (deliveryQuote ) | N |
shippingOrderPrice.price.taxIncludedAmount.unit | String | Currency (e.g., USD ) | N |
shippingOrderPrice.price.taxIncludedAmount.value | Number | Total price including tax | N |
shippingOrderPrice.priceAlteration.priceType | String | Type of price (tip ) | N |
shippingOrderPrice.priceAlteration.taxIncludedAmount.value | Number | Tip provided to dasher | N |
Response
{
"id": "D-1763", //external_delivery_id
"shippingOrderCharacteristic": [
{
"name": "tracking_url",
"value": "https://doordash.com/tracking?id=1345" //trackingUrl
}
],
"shippingOrderPrice": {
"priceType": "deliveryPrice",
"price": {
"taxIncludedAmount": {
"value": 19.99, //order_value
"unit": "USD"
},
"dutyFreeAmount": {
"value": 19.00, //fee
"unit": "USD"
},
"taxAmount": {
"value": 0.99, //Tax
"unit": "USD"
}
}
},
"relatedParty": [
{
"id": "1232142", //dasher_id
"name": "John D.", //dasher_name
"role": "DeliveryAgent",
"@referredType": "Individual"
}
],
"shippingOrderItem": [
{
"id": "D-1763",
"action": "add",
"shipment": {
"collectionDate": "2025-07-09T07:00:00.000-04:00", //pickup_time_actual
"pickupDate": "2025-07-09T07:00:00.000-04:00", //pickup_time_estimated
"expectedDeliveryDate": "2025-07-09T07:00:00.000-04:00" //dropoff_time_estimated
}
}
],
"status": "quoted" //delivery_status
}
Definitions
Each of the response parameters is detailed.
Name | Type | Description | required |
---|---|---|---|
id | string | External Delivery id | Y |
shippingOrderCharacteristic[name = "tracking_url"].value | string | Tracking url | N |
shippingOrderPrice.priceType | string | Type of price (deliveryQuote ) | N |
shippingOrderPrice.price.taxIncludedAmount.value | number | Order Value | N |
shippingOrderPrice.price.dutyFreeAmount.value | number | Delivery Fee | N |
shippingOrderPrice.price.taxAmount.value | number | Tax amount | N |
relatedParty.id | string | Dasher Id | N |
relatedParty.name | string | Dasher Name | N |
relatedParty.role | string | Related Party Role. i.e DeliveryAgent | N |
relatedParty.@referredType | string | Reffered type of related party. i.e Individual | N |
shippingOrderItem.id | string | External Delivery id | N |
shippingOrderItem.action | string | Action performed. "add" in this case | N |
shippingOrderItem.shipment.collectionDate | datetime | Actual Pickup time | N |
shippingOrderItem.shipment.pickupDate | datetime | Estimated pickup time | N |
shippingOrderItem.shipment.expectedDeliveryDate | datetime | Estimated dropoff time | N |
status | string | Delivery Status | N |
Possible response error
In this section all the possible data structures received by the client are defined and that must be considered as unsatisfactory when responding to the method.
[ 400 ]
Bad Request - the request could not be understood by the server due to malformed syntax. The client SHOULD NOT repeat the request without modifications.
{
"errors" : [{
"code" : 400,
"message" : "The request is invalid or not properly formed.",
"description" : "Malformed request syntax, invalid request message framing, or deceptive request routing."
}]
}
[ 401 ]
Unauthorized - The request has not been applied because it lacks valid authentication credentials for the target resource.
{
"errors" : [{
"code" : 401,
"message" : "The user could not be authenticated for this request.",
"description" : "The request has not been applied because it lacks valid authentication credentials for the target resource"
}]
}
[ 404 ]
Not Found - server has not found a resource with that URI. This may be temporary and permanent condition. This status code is commonly used when the server does not wish to reveal exactly why the request has been refused, or when no other response is applicable.
{
"errors" : [{
"code" : 404,
"message" : "The request is invalid or not properly formed.",
"description" : "The requested operation failed because a resource associated with the request could not be found."
}]
}
[ 405 ]
Method Not Allowed - HTTP method not allowed for this resource. The method specified in the Request-Line is not allowed for the resource identified by the Request-URI.
{
"errors": [{
"code": 405,
"message": "APIKIT:METHOD_NOT_ALLOWED",
"description": "HTTP Method DELETE not allowed for : /shippingOrder"
}]
}
[ 500 ]
Internal Server Error - server encountered an error processing request. This should not happen normally, but it is a generic error message, given when no more specific message is suitable.
{
"errors" : [{
"code" : 500,
"message" : "Internal Server Error",
"description": "The request failed due to an internal error"
}]
}
[ 501 ]
Not implemented - indicates that the server does not support the functionality required to fulfill the request. This is the appropriate response when the server does not recognize the request method and is not capable of supporting it for any resource.
{
"errors" : [{
"code" : 501,
"message" : "Not implemented",
"description" : "Operation POST /shippingOrder for Business Id: xxxx not implemented"
}]
}